#ifndef THQUEUE
#define THQUEUE

#include <libavcodec/avcodec.h>

typedef struct _pktqueue *pktqueue;

struct _pktqueue
{
  AVPacket		*pack;
  int			num;
  pktqueue		next;

};

pktqueue push(AVPacket *x, pktqueue q);

AVPacket *pull(pktqueue *q);

int q_empty(pktqueue q);

int q_num(pktqueue q);

#endif
